
//
//  Dog.m
//  AnimalProject
//
//  Created by Yiqiao on 15/4/20.
//  Copyright (c) 2015年 Yiqiao. All rights reserved.
//

#import "Dog.h"

@implementation Dog

- (id)initWithAge:(NSInteger)age AndColor:(NSString *)color AndHeight:(NSInteger)height AndDistance:(NSInteger)distance{
    _age = age;
    _color = color;
    _height = height;
    _capacityOfMaxDistance = distance;
    return self;
}

- (NSString *)description{
    return [NSString stringWithFormat:@"DogInfo: age: %li color: %@ height: %li distance: %li",self->_age,self->_color,self->_height,self->_capacityOfMaxDistance];
}

- (void)ball{
    NSLog(@"catching the ball");
}

- (void)bark{
    NSLog(@"barking");
}

- (void)run{
    NSLog(@"running");
}
@end
